package com.cgwx.systemservice.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cgwx.springsecurity.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cgwx.systemservice.entity.vo.SysUserQueryVo;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author GaoWei
 * @since 2023-10-12
 */
public interface SysUserService extends IService<SysUser> {

//    条件分页查询
    IPage<SysUser> selectPage(Page<SysUser> pageParam, SysUserQueryVo sysUserQueryVo);
//    修改用户状态
    void updateStatus(String id, Integer status);
//    根据用户名称进行查询
    SysUser getUserInfoByUserName(String username);
//    查询用户信息
    Map<String, Object> getUserInfo(String username);
}
